package com.zxj.friend.domain.user.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

/**
 * 发生验证码请求参数
 */
@Data
@Schema(name = "UserCodeDTO", description = "发生验证码请求参数")
public class UserCodeDTO {
    /** 手机号 */
    @Schema(description = "手机号")
    @NotEmpty(message = "手机号不能为空")
    private String phone;
}
